package com.krisyu.visitorPattern.vpExpand1_MultiVisitor;

/**
 * @Author: Kris
 * @Date: 2022/1/9 - 01 - 09 - 20:59
 * @Description: 具体被访问的对象
 * @version: 1.0
 */
public class ConcreteElement1 extends Element{
    @Override
    public void doSomething() {
        System.out.println("ConcreteElement1 doSomething! ..");
    }

    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }
}
